﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LPP.Core.Alipay
{
    public class AlipayConfig
    {

        public string AppId { get; set; }
        public string PrivateKey { get; set; }
        public string PublicKey { get; set; }
        public string NotifyUrl { get; set; }
        public string ReturnUrl { get; set; }
        public bool IsSandbox { get; set; }
        public string SignType { get; set; } = "RSA2";
        public string Charset { get; set; } = "utf-8";
        public string Format { get; set; } = "json";
        public string Version { get; set; } = "1.0";
        public string GatewayUrl => IsSandbox
            ? "https://openapi.alipaydev.com/gateway.do"
            : "https://openapi.alipay.com/gateway.do";
    }
}
